<?php
namespace Admin\Controller;
use Think\Controller;
class SysController extends Controller {
    public function set(){
        $this->display();
    }
    public function sys_qq()
    {
    	if(IS_POST){
    		$close = I('post.close');
    		if($close=='on'){
    			$configs = include './Bbs/Common/Conf/config.php';
    			$configs['IS_QQLOGIN'] = true;

    			$str = var_export($configs,true);

    			$str = "<?php return ".$str."?>";

    			file_put_contents("./Bbs/Common/Conf/config.php", $str);
    		}
    	}else{
    		$this->display();
    	}
    	
    }
    public function link(){
        $this->display();
    }
    
}